package com.hqyj.springBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.springBoot.modules.account.entity.User;
import com.hqyj.springBoot.modules.common.entity.ResultEntity;
import com.hqyj.springBoot.modules.common.entity.SearchBean;

import java.util.List;

public interface UserService {

    User getUserByUserNameAndPassword(String userName, String password);

    ResultEntity<User> login(User user);

    ResultEntity<User> addUser(User user);

    ResultEntity<User> updateUserByUser(User user);

    ResultEntity<User> deleteUserById(int id);

    User selectUserById(int id);

    PageInfo<User> selectAllUser(SearchBean searchBean);

    User selectUserByUserName(String userName);

    void logout();
}
